package com.example.mall.dao;

import com.example.mall.entity.Order;

import java.util.List;

public interface OrderDAO {
    List<Order> selectAll();
    Order selectOneById(Integer id);
    Order selectOneByUuid(String orderUuid);
    List<Order> selectByUserId(Integer userId);
    List<Order> selectByUsername(String username);
    List<Order> query(Integer page, Integer pageSize, Order order);
    int save(Order order);
    void delete();
    void update(Order order);
}
